package com.sundayfactory.workpaychart;

import android.os.AsyncTask;

public class httpAsynk extends AsyncTask<Object, Object, Object> {
    private callbackInterface callbackInterface;
    public httpAsynk(com.sundayfactory.workpaychart.callbackInterface callbackInterface) {
	this.callbackInterface = callbackInterface;
    }
    @Override
    protected Object doInBackground(Object... arg0) {
	Masterpaser mp = (Masterpaser)arg0[0];
	ConnectionUtil con = new ConnectionUtil();
	try {
		mp.JsonResult = con.urlConnectionGet(mp.Url);
	} catch (Exception e) {
	    e.printStackTrace();
	}
	
	
	return mp;
    }
    @Override
    protected void onPostExecute(Object result) {
	callbackInterface.onComplite(result);
    }
    @Override
    protected void onProgressUpdate(Object... values) {
    }

}
